package zuoye;

public class shouji implements jiben,bofang {
    bofang fang1;
    jiben ben1;
    public void fangfa(bofang fang1,jiben ben1){
        this.fang1=fang1;
        this.ben1=ben1;
    }
    @Override
    public String yinyue() {
        return "播放音乐";
    }

    @Override
    public String shipin() {
        return null;
    }

    @Override
    public String duanxin() {
        return "发送短信";
    }

    @Override
    public String dianhua() {
        return "拨打电话";
    }
    public void shouji1(){
        System.out.println("旧手机");
        System.out.println(fang1.yinyue()+":稻香");
        System.out.println(ben1.dianhua()+":119");
        System.out.println(ben1.duanxin()+":~~~~~~~");

    }
}
